package com.atguigu.paymentdemo.config;

import com.atguigu.paymentdemo.uitl.SnowflakeIdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class OrderIdGenerateConfig {

    @Bean
    public SnowflakeIdWorker GetSnowflakeIdWorker(){
        return new SnowflakeIdWorker(1,1);
    }
}
